/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.thienloc.omap.controller.services;

import com.thienloc.omap.util.Constant;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;

/**
 *
 * @author GiangLT
 */
@ManagedBean
@ViewScoped
public class SoiConfigBean extends AbstractServiceConfigBean {

    @Override
    protected void validateForm() throws Exception {
    }

    @Override
    protected Logger getLogger() {
        return LoggerFactory.getLogger(SoiConfigBean.class);
    }

    @Override
    public void resetToCreateFormAction() throws Exception {
        super.resetToCreateFormAction();
        list = facade.findByServiceName(Constant.SOI_SERVICE_NAME, startViewDate, endViewDate);
        selected.setServiceName(Constant.SOI_SERVICE_NAME);
        edit = false;
        view = false;
    }
}
